﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Routing;
using System.Web.Compilation;

namespace weikebuluo.Controllers.Cs.Customer
{
    public class PageRoute : IRouteHandler
    {
        public string RoutePath { get; private set; }
        public PageRoute(string routePath) { RoutePath = routePath; }
        public IHttpHandler GetHttpHandler(RequestContext requestContext)
        {
            return BuildManager.CreateInstanceFromVirtualPath(RoutePath, typeof(IHttpHandler)) as IHttpHandler;
        }
    }
}